package com.chengzhi.sender;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @param
 * @author RCZ
 * @description
 * @create 2018-01-20 15:08
 */
@Component
public class Sender {
    @Autowired
    private AmqpTemplate amqpTemplate;

    public void send() {
        this.amqpTemplate.convertAndSend("hello","hello rabbitmq");
    }
}
